﻿using System;

namespace Communication.Channel.Serial
{
	// Token: 0x02000038 RID: 56
	public class SerialChannelFactory : ChannelFactory
	{
		// Token: 0x0600019B RID: 411 RVA: 0x000054AE File Offset: 0x000036AE
		public SerialChannelFactory(int maxLogMessage)
		{
			this.MAX_MESSAGE_COUNT_IN_QUEUE = maxLogMessage;
		}

		// Token: 0x0600019C RID: 412 RVA: 0x000054BD File Offset: 0x000036BD
		public SerialChannelFactory() : this(100)
		{
		}

		// Token: 0x0600019D RID: 413 RVA: 0x000054C7 File Offset: 0x000036C7
		public Channel NewChannel()
		{
			return new DefaultSerialChannel(this.MAX_MESSAGE_COUNT_IN_QUEUE);
		}

		// Token: 0x04000069 RID: 105
		private readonly int MAX_MESSAGE_COUNT_IN_QUEUE;
	}
}
